Red Hat Enterprise Linux 6 Administration by Sander van Vugt
Author:Sander van Vugt
Language: eng
Format: epub
Publisher: John Wiley & Sons
Published: 2013-01-14T16:00:00+00:00
Managing Linux Users and Groups in LDAP
In this section, you'll learn how to manage Linux user and group accounts in an LDAP Directory. You'll learn how to add users and groups, how to set passwords for LDAP users, and how to change the group membership for users. You'll also learn how to delete entries from the LDAP Directory.
Adding LDAP Users
To add anything to an LDAP Directory, you need to create an LDIF file. This file needs to contain definitions for all attributes that are required for the entries you want to create. Once the LDIF file is created, you can use ldapadd to import it into the Directory. In Listing 12.5, you can see what an LDIF file designed to import user accounts into the Directory looks like.
Listing 12.5: LDIF file for user import
[root@hnl ~]# cat lisa.ldif dn: uid=lisa,ou=users,dc=example,dc=com objectClass: top objectClass: account objectClass: posixAccount objectClass: shadowAccount cn: lisa uid: lisa uidNumber: 5000 gidNumber: 5000 homeDirectory: /home/lisa loginShell: /bin/bash gecos: lisa userPassword: {crypt}x shadowLastChange: 0 shadowMax: 0 shadowWarning: 0 [root@hnl ~]#
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7790)
Grails in Action by Glen Smith Peter Ledbrook(7705)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6648)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6637)
Running Windows Containers on AWS by Marcio Morales(6161)
Kotlin in Action by Dmitry Jemerov(5074)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4960)
Combating Crime on the Dark Web by Nearchos Nearchou(4547)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4424)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4422)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4211)
The Age of Surveillance Capitalism by Shoshana Zuboff(3964)
Python for Security and Networking - Third Edition by José Manuel Ortega(3784)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3515)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3450)
Mastering Python for Networking and Security by José Manuel Ortega(3359)
Learn Wireshark by Lisa Bock(3343)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3337)
Blockchain Basics by Daniel Drescher(3307)
